
<!DOCTYPE html>
<!-- saved from url=(0038)http://razonartificial.com/elementary/ -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Encontro de Meio Ambiente UVA/Unavida - <?=$titulo;?></title>
    <style type="text/css">
        
        .container{
            width: auto;
            font-family:Lato,sans-serif;
	font-size:12px;
	line-height:1.6em;
           
        }
        table{
            border: 0px;
            width: auto;
        }
      
        h3{
            color: #005b00;
        }
        .titulo{
            text-align: center;
            font-size: 14px;
            padding: 5px;
            border-bottom: #005b00;
           
        }
        
    </style>
 
</head>
<div class="container ">
            <div class="row">  
                <div class="col-md-6">
                          <div class="tab-content">
                              <div align="center" style="border-bottom: 2px solid #005b00;">
                                  <img src="img/logoUnica.jpg" width="600" />
                             </div>
                                <div class="tab-pane active" id="example-tables">
                                    <div class="titulo">
                                     <h3>LISTA DE PRESENÇA</h3>
                                    </div>
                                    <table class="table table table-striped">
                                        <thead>
                                            <tr>                                               
                                                <th>CPF</th>
                                                <th>NOME</th>
                                                <th>ASSINATURA</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <?php
                        $condicao = $this->uri->segment(4);  
                        if($condicao == 'ativo'){        
                            $buscaParticipante = $this->participantemodel->buscaTodosParticipantesAtivos()->result();
                        }
                        else if($condicao == 'inativo'){
                            $buscaParticipante = $this->participantemodel->buscaTodosParticipantesInativos()->result(); 
                        }
                        else if($condicao == 'incompleto'){
                            $buscaParticipante = $this->participantemodel->buscaTodosParticipantesAtivosIncompleto()->result();                        
                        }
                        else{
                            $buscaParticipante = $this->participantemodel->buscaTodosParticipantesConfirmado()->result();
                        }
                        $contador = 0;
                        foreach ($buscaParticipante as $participante){  ?>
                                            
                                            <tr>
                                               
                                                <td><?=$participante->cpf;?></td>
                                                
                                                <td style="width:200"><?=mb_strtoupper($participante->nome);?><?php
                                                if($participante->valor == 20){
                                                    echo '*';
                                                }
                                                ?></td>
                                                <td>_____________________________________________</td>
                                               
                                               
                                            </tr>
                        <?php 
                        $contador++;
                        }
                        ?>
                                        <tfoot>
                                            <tr><td>Total de Inscritos: <td><?=$contador;?></td></tr>
                                        </tfoot>
                                            
                                          
                                        </tbody>
                                    </table>
                                    <p>Campina Grande, <?=date("d/m/Y"); echo ' '.date("H:i:s")?></p>
                              
                          </div>
                   
                    
            </div>
               
            
             <!-- row -->
        </div> <!-- container -->
         </div>
